import request from '@/utils/request'

// 查询营业额列表
export function listTurnover(query) {
  return request({
    url: '/boss/turnover/list',
    method: 'get',
    params: query
  })
}

// 查询营业额详细
export function getTurnover(turnoverId) {
  return request({
    url: '/boss/turnover/' + turnoverId,
    method: 'get'
  })
}

// 新增营业额
export function addTurnover(data) {
  return request({
    url: '/boss/turnover',
    method: 'post',
    data: data
  })
}

// 修改营业额
export function updateTurnover(data) {
  return request({
    url: '/boss/turnover',
    method: 'put',
    data: data
  })
}

// 删除营业额
export function delTurnover(turnoverId) {
  return request({
    url: '/boss/turnover/' + turnoverId,
    method: 'delete'
  })
}
